package com.oa.service;

import java.util.List;

import com.oa.bean.ContrUser;
import com.oa.bean.Contract;
import com.oa.bean.Section;
import com.oa.bean.User;

public interface CMService {

	//查询部门信息
	public List<Section> findSec();
	
	//查询部门员工信息
	public List<User> findUser(int udepartment_id);
	
	//添加合同信息
	public int addCon(Contract contract);
	
	//查询所有的合同
	public List<ContrUser> findCon(Contract contract);
	
	//判断合同是否存在
	public Contract dec(String uname);
	
	//查看详细人事合同信息
	public Contract findContr(String con_num);
	
	//根据id查找人事合同信息
	public ContrUser findCon1(int con_id);
	
	//修改信息
	public int updateCon(Contract contract);
	
}
